# -*- coding: UTF-8 -*-
from django.core import rss
from django.models.blog import entrees

weblog_entry_feed = rss.FeedConfiguration(
    slug = 'blog',
    title_cb = lambda param: "Le blog de Django",
    link_cb = lambda param: "/blog/",
    description_cb = lambda param: "Les dernières nouvelles concernant Django, le framework web Python.",
    get_list_func_cb = lambda obj: entrees.get_list,
    get_list_kwargs = {
        'limit': 10,
    }
)

rss.register_feed(weblog_entry_feed)